package com.haitaoit.chengquan.ui.equipment.request;

import com.haitaoit.chengquan.bean.OrderNumObj;
import com.haitaoit.chengquan.business.request.PublicServiceReqSeconde;
import com.haitaoit.chengquan.ui.equipment.bean.SBWXAddRequirementBean;
import com.haitaoit.chengquan.ui.equipment.response.LoginBean;
import com.haitaoit.chengquan.ui.equipment.response.ResponseItem;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2017/5/17.
 */

public interface IRequest {
    @POST("api/Demand/add_demand")
        //发布需求@Path("id") int groupId,?user_id={user_id}&sign={sign}
    Call<ResponseItem> SBWXAddRequirement(@Query("user_id") String user_id, @Query("sign") String sign, @Body SBWXAddRequirementBean bean);

    @POST("api/Service/add_service")
        //发布需求api/Service/add_service?user_id={user_id}&sign={sign}
    Call<ResponseItem> ServePubliceRequirement(@Query("user_id") String user_id, @Query("sign") String sign, @Body PublicServiceReqSeconde bean);

    @GET("api/User/GetUserlogin")
        //登录api/User/GetUserlogin?equipment={equipment}&phone={phone}&password={password}&sign={sign}
    Call<LoginBean> userLogin(@QueryMap Map<String, String> map);

    @GET("api/User/GetOrderCount")
        //登录api/User/GetUserlogin?equipment={equipment}&phone={phone}&password={password}&sign={sign}
    Call<OrderNumObj> getOrderCount(@Query("user_id") String user_id, @Query("sign") String sign);

}
